package com.rest.core.dto;

import java.util.List;

import javax.xml.bind.annotation.XmlRootElement;

/**
 * 分页DTO
 * 
 * @Description:
 * @Package com.rest.core.dto.PageDTO
 * @author Smile- 2016年4月16日 下午11:48:21
 */
@SuppressWarnings("rawtypes")
@XmlRootElement
public class PageDTO {

	private Long totalCount;
	private Long totalPages;

	private List list;

	public Long getTotalCount() {
		return totalCount;
	}

	public void setTotalCount(Long totalCount) {
		this.totalCount = totalCount;
	}

	public Long getTotalPages() {
		return totalPages;
	}

	public void setTotalPages(Long totalPages) {
		this.totalPages = totalPages;
	}

	public List getList() {
		return list;
	}

	public void setList(List list) {
		this.list = list;
	}

	public void setTotalPages(int end) {
		totalPages = ((totalCount + end - 1) / end);
	}
}
